Important: The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s).
The following command enables authentication for an OSPF area defined by the IP address 192.168.100.10 and the OSPF authentication type to MD5:area 192.168.100.10 authentication message-digestThe following command sets the default cost for an OSPF area defined by the IP address 192.168.100.10 to 300:area { ipaddress | decimal_value } nssa [ default-information-originate | no-redistribution | no-summary | translate-always | translate-candidate | translate-never ][ no-redistribution ] [ no-summary ] [ translate-always ] [ translate-candidate ] [ translate-never ]no area { ipaddress | decimal_value } nssa [ default-information-originate | no-redistribution | no-summary | translate-always | translate-candidate | translate-never ][ no-redistribution ] [ no-summary ] [ translate-always ] [ translate-candidate ] [ translate-never ]The following command defines the area designated by the IP address 192.168.100.10 as an NSSA area:area 192.168.100.10 nssaThe following command defines the OSPF area defined by the IP address 192.168.100.10 as a stub area:area 192.168.100.10 stubThe following command creates a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20:area { ipaddress | decimal_value } virtual-link router_id_address authentication { message-digest | null | text }no area { ipaddress | decimal_value } virtual-link router_id_address authentication { message-digest | null | text }The following command sets the authentication method for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20 to use no authentication:area { ipaddress | decimal_value } virtual-link router_id_address authentication-key [ encrypted password encrypted_authentication_key] password authentication_keyno area { ipaddress | decimal_value } virtual-link router_id_address authentication-key [ encrypted password encrypted_authentication_key] password authentication_keyencrypted_authentication_key is a string variable of size 1 to 523.password authentication_keyThe password to use for authentication. authentication_key is a string variable, from 1 through 16 alphanumeric characters, that denotes the authentication password. This variable is entered in clear text format.The following command creates an authentication password of 123456 for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20:area { ipaddress | decimal_value } virtual-link router_id_address [ dead-interval value ] [ hello-interval value ] [ retransmit-intervalvalue ] [ transmit-delay value ] [ dead-interval value ] [ hello-interval value ] [ retransmit-interval value ] [ transmit-delay value ]no area { ipaddress | decimal_value } virtual-link router_id_address [ dead-interval value ] [ hello-interval value ] [ retransmit-intervalvalue ] [ transmit-delay value ] [ dead-interval value ] [ hello-interval value ] [ retransmit-interval value ] [ transmit-delay value ]dead-interval valueThe interval, in seconds, that the router should wait, during which time no packets are received and after the router considers a neighboring router to be off-line. value must be an integer from 1 through 65535.hello-interval valueThe interval, in seconds before sending a hello packet. value must be an integer from 1 through 65535.retransmit-interval valueThe interval, in seconds, that router should wait before retransmitting a packet. value must be an integer from 1 through 3600.transmit-delay valueThe interval, in seconds, that the router should wait before transmitting a packet. value must be an integer from 1 through 3600.The following command sets the retransmit interval for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20 to 60 seconds:area { ipaddress | decimal_value } virtual-link router_id_address message-digest-key key_id md5 [ encrypted password encrypted_authentication_key] password authentication_keyno area { ipaddress | decimal_value } virtual-link router_id_address message-digest-key key_id md5 [ encrypted password encrypted_authentication_key] password authentication_keyencrypted_authentication_key is a string variable of size 1 to 523.password authentication_keyThe password to use for authentication. authentication_key is a string variable, from 1 through 16 alphanumeric characters, that denotes the authentication password. This variable is entered in clear text format.The following command enables the use of MD5-based OSPF authentication for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20, sets the MD5 Key ID to 25, and the password to 123456:default-information originate [ always ] [ metric metric_value ] [ metric-type { 1 | 2 } ] [ route-map route_map_name ]metric metric_valueroute-map route_map_namedefault-metric metric_valuedefault-metric 235distance { distance_value | ospf { [ external distance_value ] [ inter-area distance_value ] [ intra-area distance_value ] } }no distance { distance_value | ospf { [ external distance_value ] [ inter-area distance_value ] [ intra-area distance_value ] } }external distance_value: Set the OSPF route administrative distance for routes from other routing domains, learned by redistribution. This must be an integer from 1 through 255. The default is 110.inter-area distance_value: sets the OSPF route administrative distance for routes from one routing area to another. This must be an integer from 1 through 255. The default is 110.intra-area distance_value: sets the OSPF route administrative distance for all routes within an area. This must be an integer from 1 through 255. The default is 110.distance 30The following command uses the route access list named ral1 to filter outgoing routing updates for all connected routes:ip vrf vrf_nameno ip vrf vrf_namevrf_name is name of a preconfigured virtual routing and forwarding (VRF) context configured in Context Configuration Mode through ip vrf command.The following command enables preconfigured VRF context instance ospf_vrf1 for OSPF routing and enters the OSPF VRF Configuration mode:ip vrf ospf_vrf1poll-interval poll_interval_valuepriority priority_valueneighbor 192.168.100.10The following command specified that the OSPF router will use the interface at IP address 192.168.1.0 with a netmask of 24:network 192.168.1.0/24ospf graceful-restart { grace-period grace_period | helper { never | policy { only-reload | only-upgrade } }ospf router-id ip_addressThe following command sets the router ID to 192.168.200.1:ospf router-id 192.168.200.1passive-interface interface_nameno passive-interface interface_namepassive-interface Intfc1redistribute { bgp | connected | rip | static } [ metric metric_value ] [ metric-type { 1 | 2 } ] [ route-map route_map_name ]metric metric_valueroute-map route_map_nameFilter routes through the specified route map before redistribution. route_map_name specifies the name of the route-map to use and must be specified as a string of 1 through 79 alphanumeric characters.refresh timer valueno refresh timer valueThe following command sets the refresh timer to 90 seconds:router-id ip_addressno router-id ip_addressThe following command sets the router ID to 192.168.200.1:router-id 192.168.200.1timers spf 15 15
|
| Cisco Systems Inc. |
| Tel: 408-526-4000 |
| Fax: 408-527-0883 |